const state = {
  logs: []
}
const mutations = {
  ADD_ERROR_LOG: (state, log) => {
    state.logs.push(log)
  },
  DEL_ERROR_LOG: (state) => {
    state.logs = []
  }
}
const actions = {
  addErrorLog({ commit }, log) {
    commit('ADD_ERROR_LOG', log)
  },
  delErrorLog({ commit }) {
    commit('DEL_ERROR_LOG')
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
